
<template>
  <div>
    <MySon :money="money" @dealmoney="fn3"></MySon>
     <MySon @deal="fn($event)" @dealclick="fn1"></MySon>
  </div>
</template>
 
<script>
import MySon from "./my-son.vue"
export default {
  name: "MyFather",
  components: {
    MySon,
  },
  props: {},
  data() {
    return {
      money:100,
    };
  },
  computed: {},
  watch: {},
  created() {},
  methods: {
    fn(num){
      console.log(132,num)
    },
    fn1(val){
      console.log(val)
    },
    fn3(val){
      console.log('给你'+val)
    }
  }
};
</script>

<style scoped>
     
</style>